#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>

#define   FILE_PORT2           61970       // TCP       per testare scambio di file su stessa macchina

#define   FILE_PORT            61950      // TCP
#define   UPDATE_FILE_PORT     62010      // TCP
#define   PEER_PORT            61910      // UDP       superpeer in ascolto sulla porta 5191 per aggiornamenti dai peer
#define   QUERY_PORT           61970      // TCP
#define   QUERY_HELP_PORT       61990     // UDP

#define   JOIN_LEAVE_PORT       62030     // UDP
#define   PING_PORT             62050     // UDP       peer/superpeer


#define   BOOT_WELCOME_PORT      61890     // TCP
#define   BOOT_UPDATE_PORT       61910     // UDP
#define   BOOT_PING_PORT         62110    // UDP

#define   BACKLOG		      10
#define   MAX_PEER_NUMBER     10
